package com.maxd.modules.selfshop.merchants.service;

import com.maxd.error.Result;
import com.maxd.modules.selfshop.merchants.entity.SelfStore;

public interface SelfStoreService {

    //列表
    Result findAll(Integer page, Integer size, String storeName);

    //查询
    Result findOne(Long id);

    //根据商户查询店铺
    Result findByMerchant(Long merchantId);

    //删除
    Result delete(Long id);


    //添加
    Result saveBody(SelfStore entity);

    //修改
    Result updateBody(SelfStore entity);

    //商品销量增加购买个数
    void salesAdd(Long id, Integer number);

    //封禁解封店铺
    Result ban(Long id, Integer banStatus);

    //数据中心
    Result count(Long storeId,String data);

    //检测保证金到期
    void checkMargin();

}
